-- 主题入口：Catppuccin 四合一（latte / frappe / macchiato / mocha）
return {
  {
    'catppuccin/nvim',
    name = 'catppuccin',
    lazy = false,          -- 启动即加载，防止闪屏
    priority = 1000,       -- 优先级最高，先刷颜色
    opts = {
      flavour = 'mocha',   -- 默认深色：mocha；亮屏可改 latte
      transparent_background = false,
      term_colors = true,
      integrations = {     -- 与主流插件一体化
        telescope = true,
        nvimtree = true,
        lualine = true,
        which_key = true,
        gitsigns = true,
        treesitter = true,
        indent_blankline = { enabled = true },
      },
    },
    config = function(_, opts)
      --  require('catppuccin').setup(opts)
      --  vim.cmd.colorscheme('catppuccin')  -- 立即生效
    end,
  },
  {
    'rebelot/kanagawa.nvim',
    lazy = false,
    priority = 1000,
    opts = { style = 'wave', transparent = false },
    config = function(_, opts)
      -- require('kanagawa').setup(opts)
      -- vim.cmd.colorscheme('kanagawa')
    end,
  },
  {
    "ellisonleao/gruvbox.nvim", -- 官方仓库
    lazy = false,               -- 立即加载
    priority = 1000,            -- 先加载，避免被其他主题覆盖
    opts = {
      contrast = "hard",        -- "soft" | "medium" | "hard"
      transparent_mode = false, -- 需要透明设为 true
      bold = true,
      italic = {
        strings  = true,
        comments = true,
        operators = false,
      },
      invert_selection = false,
      invert_signs = false,
      invert_tabline = false,
      invert_intend_guides = false,
      inverse = true, -- invert background for search, diffs, statuslines and errors
    },
    config = function(_, opts)
      require("gruvbox").setup(opts)
      -- 应用主题
      vim.cmd.colorscheme("gruvbox")
      -- 如需默认浅色，取消下行注释
      -- vim.o.background = "light"
    end,
  }
}
